import { get, post } from "./request";
class Mimicry {
  // 获取区域列表
  async getProject() {
    const res = get(`middle/klt/home/project`);
    return res;
  }

  // 获取设备状态列表
  async postDeviceStatus(data) {
    const res = post(`middle/klt/home/mapDevice`, data);
    return res;
  }
  // 获取预警
  async postCurrentAlarm(data) {
    const res = post(`middle/klt/home/warnCurrent`, data);
    return res;
  }
}

export default new Mimicry();
